
<table class="aut_tab profile" width="100%" border="0" cellspacing="0" cellpadding="0" id="tb-XT-info-base">
  <tr>
    <td class="info_t_right" width="65"><span class="tips">*</span>艺&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名</td>
    <td class="show_info"><?=$o['nickname']?></td>
    <td width="220" class="edit_info">
        
      <?php if(!empty($o['nickname'])) {
              echo '<input name="nickname" type="text" class="txt" value="'.$o['nickname'].'"/>'; 
        } else {
              echo '<input name="nickname" type="text" class="txt" placeholder="请输入昵称"/>';
        }
      ?>
      <?php //echo form_error('nickname');?>
      </td>
      <td class="info_t_right" width="65"><span class="tips">*</span>模特类别</td>
      <td class="show_info">
      	<?=$areaType[$o['area']]?>模特
      </td>
      <td class="edit_info">
      	<select class="txt" name="area">
        	<?php foreach ($areaType as $key=>$val):?>
        		<option value="<?=$key?>" <?php if($o['area'] == $key) { echo 'selected';}?>><?=$val?>模特</option>
        	<?php endforeach;?>
        </select> 
      </td>
  </tr>
  <tr>
    <td class="info_t_right"><span class="tips">*</span>真实姓名</td>
    <td class="show_info"><?=$o['realname']?><input type="hidden" value="<?=$o['realname']?'1':'2'?>" id="show_hidden_flag"/></td>
    <td class="edit_info"><input id="realname" name="realname" type="text" value="<?=$o['realname']?>" class="txt" placeholder="请输入姓名"/><?php //echo form_error('realname');?></td>
    <td class="info_t_right"><span class="tips">*</span>所在城市</td>
    <td class="show_info"><?=$o['city']?></td>
    <td class="edit_info">
      <span id="divCity"></span>
      <input type="hidden" id="init_city_id" name="init_city_id" value="<?=$o['city_id'];?>"/>
      <input type="hidden" id="city" name="city" value="<?=$o['city'];?>"/>
    </td>
  </tr>
  <tr>
    <td class="info_t_right"><span class="tips">*</span>联系电话</td>
    <td class="show_info"><?=$o['mobile']?></td>
    <td class="edit_info"><input id="mobile" name="mobile" type="text" class="txt" value="<?=$o['mobile']?>" placeholder="请输入你的手机号码"/></td>
    <td class="info_t_right"><span class="tips">*</span>性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别</td>
    <td class="show_info"><?php if($o['sex']==1) echo '男'; elseif ($o['sex']==2) echo "女"; else echo "请选择";?></td>
    <td class="reg-sort edit_info">
        <p><input type="radio" name="sex" value="1" <?php if($o['sex']==1) echo 'checked';?> id="sort_1"/><label for="sort_1">男</label></p>
        <p><input type="radio" name="sex" value="2" <?php if($o['sex']==2) echo 'checked';?> id="sort_2"/><label for="sort_2">女</label></p>
    </td>
  </tr>
  <tr>
    <td class="info_t_right"><span class="tips">*</span>身&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;高</td>
    <td class="show_info"><?=$o['height']?$o['height'].' cm':''?></td>
    <td class="edit_info"><input id="height" name="height" type="text" class="txt" value="<?=$o['height']?>" placeholder="请输入身高"/> cm<?php //echo form_error('height');?></td>
    <td class="info_t_right">体&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;重</td>
    <td class="show_info"><?=$o['weight']?$o['weight'].' Kg':''?></td>
    <td class="edit_info"><input id="tz" name="weight" type="text" class="txt" value="<?=$o['weight']?$o['weight']:''?>" placeholder="请输入体重"/> Kg</td>
  </tr>
  <tr>
    <td class="info_t_right">罩&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;杯</td>
    <td class="show_info"><?=$o['cup']?></td>
    <td class="edit_info"><input id="cup" name="cup" type="text" class="txt" value="<?=$o['cup']?>" placeholder="请输入A,B,C,D,E,F等"/></td>
    <td class="info_t_right">三&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;围</td>
    <td class="show_info"><?php if ($o['bust']):?><?=$o['bust']?$o['bust']:''?>-<?=$o['waist']?$o['waist']:''?>-<?=$o['hips']?$o['hips']:''?> cm<?php endif;?></td>
    <td class="edit_info">
        <input id="bust" name="bust" type="text" class="txt" style="width:40px" value="<?=$o['bust']?$o['bust']:''?>" placeholder="胸围"/>-
        <input id="waist" name="waist" type="text" class="txt" style="width:40px" value="<?=$o['waist']?$o['waist']:''?>" placeholder="腰围"/>-
        <input  id="hips"  name="hips" type="text" class="txt" style="width:40px" value="<?=$o['hips']?$o['hips']:''?>" placeholder="臀围"/> cm
    </td>
  </tr>
   <tr>
    <td class="info_t_right"><span class="tips">*</span>鞋&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;码</td>
    <td class="show_info"><?=$o['shoes']?$o['shoes'].' 码':''?></td>
    <td class="edit_info"><input id="shoes" name="shoes" type="text" class="txt" value="<?=$o['shoes']?>" placeholder="请输入你的鞋码"/> 码</td>
    <td class="info_t_right">肩&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;宽</td>
    <td class="show_info"><?=$oBody['shoulderg']?$oBody['shoulderg'].' cm':''?></td>
    <td class="edit_info"><input id="bd_shoulderg" name="bd_shoulderg" type="text" class="txt" placeholder="" value="<?=!empty($oBody['shoulderg'])?$oBody['shoulderg']:'';?>"/> cm</td>
    <!--<td align="center" colspan="2"><a href="javascript:;" class="TX-win-open" style="color:#f00;">详细尺寸</a></td>-->
  </tr>
  <!-- <tr>           
    <td class="info_t_right">领&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;围</td>
    <td class="show_info"><?=$oBody['collarf']?$oBody['collarf'].' cm':''?></td>
    <td class="edit_info"><input id="bd_collarf" name="bd_collarf" type="text" class="txt" placeholder="" value="<?=!empty($oBody['collarf'])?$oBody['collarf']:'';?>"/> cm</td>
    <td class="info_t_right">臂&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;长</td>
    <td class="show_info"><?=$oBody['sleeveh']?$oBody['sleeveh'].' cm':''?></td>
    <td class="edit_info"><input id="bd_sleeveh" name="bd_sleeveh" type="text" class="txt" placeholder="" value="<?=!empty($oBody['sleeveh'])?$oBody['sleeveh']:'';?>"/> cm</td>
  </tr> -->
  <!-- <tr>
    <td class="info_t_right">外侧裤长</td>
    <td class="show_info"><?=$oBody['outseam']?$oBody['outseam'].' cm':''?></td>
    <td class="edit_info"><input id="bd_outseam" name="bd_outseam" type="text" class="txt" placeholder="" value="<?=!empty($oBody['outseam'])?$oBody['outseam']:'';?>"/> cm</td>
    <td class="info_t_right">内侧裤长</td>
    <td class="show_info"><?=$oBody['inseamj']?$oBody['inseamj'].' cm':''?></td>
    <td class="edit_info"><input id="bd_inseamj" name="bd_inseamj" type="text" class="txt" placeholder="" value="<?=!empty($oBody['inseamj'])?$oBody['inseamj']:'';?>"/> cm</td>
  </tr> -->
  <!-- <tr>
    <td class="info_t_right">头&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;围</td>
    <td class="show_info"><?=$oBody['hatk']?$oBody['hatk'].' cm':''?></td>
    <td class="edit_info"><input id="bd_hatk" name="bd_hatk" type="text" class="txt" placeholder="" value="<?=!empty($oBody['hatk'])?$oBody['hatk']:'';?>"/> cm</td>
    <td class="info_t_right">腕&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;围</td>
    <td class="show_info"><?=$oBody['wristl']?$oBody['wristl'].' cm':''?></td>
    <td class="edit_info"><input id="bd_wristl" name="bd_wristl" type="text" class="txt" placeholder="" value="<?=!empty($oBody['wristl'])?$oBody['wristl']:'';?>"/> cm</td>
  </tr> -->
  <tr>
    <td class="info_t_right">小&nbsp;腿&nbsp;&nbsp;围</td>
    <td class="show_info"><?=$oBody['calfn']?$oBody['calfn'].' cm':''?></td>
    <td class="edit_info"><input id="bd_calfn" name="bd_calfn" type="text" class="txt" placeholder="" value="<?=!empty($oBody['calfn'])?$oBody['calfn']:'';?>"/> cm</td>
    <td class="info_t_right">大&nbsp;腿&nbsp;&nbsp;围</td>
    <td class="show_info"><?=$oBody['thighm']?$oBody['thighm'].' cm':''?></td>
    <td class="edit_info"><input id="bd_thighm"  name="bd_thighm" type="text" class="txt" placeholder="" value="<?=!empty($oBody['thighm'])?$oBody['thighm']:'';?>"/> cm</td>
  </tr>
  <tr>
    <td class="info_t_right">头&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;发</td>
    <td class="show_info"><?=$oBody['hair']?></td>
    <td class="edit_info"><input name="bd_hair" type="text" class="txt" placeholder="请填写头发颜色" value="<?=!empty($oBody['hair'])?$oBody['hair']:'';?>"/></td>
    <td class="info_t_right">眼&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;睛</td>
    <td class="show_info"><?=$oBody['eye']?></td>
    <td class="edit_info"><input name="bd_eye" type="text" class="txt" placeholder="请填写眼睛颜色" value="<?=!empty($oBody['eye'])?$oBody['eye']:'';?>"/></td>
  </tr>
  <tr>
  	<td class="info_t_right"><span class="tips">*</span>Q&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Q</td>
  	<td class="show_info" colspan="3"><?=$o['qq']?></td>
  	<td class="edit_info">
  		<input name="qq" id="model_qq" type="text" value="<?=$o['qq']?>" class="txt" placeholder="腾讯QQ号"/>
  	</td>
  </tr>
  <tr>
  	<td class="info_t_right">分&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;类</td>
  	<td class="show_info" colspan="3">
  		<?php 
  			$write_role = '';
  			if ($o['role'])
  			{
  				$roles = explode(',', $o['role']);
  				if ($roles)
  				{
  					foreach ($roles as $val)
  					{
  						if (!in_array($val, $roleArr))
  						{
  							if ($write_role)
  							{
  								$write_role .= ','.$val;
  							}
  							else
  							{
  								$write_role = $val;
  							}
  						}
  					}
  				}
  			}
  			echo $o['role'];
  		?>
  	</td>
  	<td class="edit_info" colspan="3">
  		<div style="height:20px;">
	  		<?php foreach ($roleArr as $key => $val):?>
	        	<label><input type="checkbox" name="role[]" onclick="checkrole(this)" value="<?=$val?>"<?php if (strstr($o['role'], $val)) echo ' checked';?> /><em style="padding-left:5px"><?=$val?></em></label>
	        <?php endforeach;?>
        </div>
        <div style="height:20px;">
	        <label><input type="checkbox" class="other_role" name="role[]" value="" onclick="checkrole(this)" <?php if ($write_role) echo ' checked';?>/><em style="padding-left:5px">自定义</em></label>
	        <input type="text" class="other_write_role" name="write_role" value="<?=$write_role?>"/>
        </div>
  	</td>
  </tr>
  <tr>
    <td class="info_t_right">风&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;格</td>
    <td class="show_info" colspan="3">
    	<?php 
    		$style_str = '';
    		foreach ($oSysModelstyle as $key => $val)
    		{
    			if(strpos(','.$o['style'].',',','.$val['id'].',')>-1)
    			{
    				if ($style_str)
    				{
    					$style_str .= ','.$val['name'];
    				}
    				else
    				{
    					$style_str = $val['name'];
    				}
    			}
    		}
    		echo $style_str;
    	?>
    </td>
    <td class="info_inc_fg edit_info" colspan="3">
      <?php foreach ($oSysModelstyle as $key => $v):?>
        <label><input type="checkbox" name="style[]" value="<?=$v['id']?>"<?php if(strpos(','.$o['style'].',',','.$v['id'].',')>-1) echo ' checked';?> /><em style="padding-left:5px"><?=$v['name']?></em></label>
      <?php endforeach;?>
    </td>
  </tr>
  <tr>
  	<td class="info_t_right">收款人姓名</td>
  	<td class="show_info"><?=$o['payeename']?></td>
  	<td class="edit_info"><input name="payee_name" type="text" value="<?php echo (!empty($o['payeename'])) ? $o['payeename'] : ''?>" class="txt" placeholder="请输入收款人姓名"/></td>
    <td class="info_t_right"><span class="tips"></span>收款账号</td>
    <td class="show_info"><?=$o['payeeaccount']?></td>
    <td class="edit_info"><input id="payee_account" name="payee_account" type="text" class="txt" value="<?php echo (!empty($o['payeeaccount'])) ? $o['payeeaccount'] : ''?>" placeholder="请输入支付宝账号，方便收款"/></td>
  <tr>
    <td class="info_t_right" valign="top"><font>个人说明</font></td>
    <td class="show_info" colspan="3"><?=strip($o['brand'])?></td>
    <td class="edit_info" colspan="3">
        <textarea style="height:120px" class="txt text"  name="introduction" cols="" rows=""><?=$o['brand']?></textarea>
    </td>
  </tr>
  <tr>
    <td class="info_t_right" valign="top"><font>工作说明</font></td>
    <td class="show_info" colspan="3"><?=strip($o['fee'])?></td>
    <td class="edit_info" colspan="3">
      <textarea style="height:120px;width:490px;" class="txt text" name="introduction_w" cols="" rows=""><?=$o['fee']?></textarea>
    </td>
  </tr>
  
</table>
<table class="aut_tab profile edit_info" width="100%" border="0" cellspacing="0" cellpadding="0">
                                    <tr style="border-bottom:none;">
                                    	<td width="80" style="height:80px">&nbsp;</td>
                                    	<td colspan="3">
                                        	<input id='submitOne' name="submit" type="submit" class="but" value="保存"/>
                                        	<!--<input name="" type="button" class="but but_reset" value="预览"/>-->
                                    	</td>
                                	</tr>
                                </table>
